#@weiXinLayout("参加见面会")

#define weiXinMain()
<form id="submitForm">
	<div class="container">
	    <div class="weui-cells" style="margin-top: 0px;">
	        <a class="weui-cell weui-cell_access" href="javascript:;">
	            <div class="weui-cell__bd" style="text-align:center">
	                <p>#(titleTemp)</p>
	                <p class="weui-media-box__desc">#(subTitle)</p>
	            </div>
	        </a>
	    </div>
	    <div class="weui-cells__title">姓名（必填）</div>
		<div class="weui-cells">
		    <div class="weui-cell">
		        <div class="weui-cell__bd">
		            <input class="weui-input" maxlength="11" value=""  name="name" type="text" placeholder="请输入姓名...">
		        </div>
		    </div>
		</div>
	    <div class="weui-cells__title">手机号码（必填）</div>
		<div class="weui-cells">
		    <div class="weui-cell">
		        <div class="weui-cell__bd">
		            <input class="weui-input" maxlength="11" value=""  name="mobile" type="text" placeholder="请输入手机号码...">
		        </div>
		    </div>
		</div>
		<div class="weui-cells__title">工作单位（必填）</div>
		<div class="weui-cells">
		    <div class="weui-cell">
		        <div class="weui-cell__bd">
		            <input class="weui-input" maxlength="50" value=""  name="company" type="text" placeholder="请输入工作单位...">
		        </div>
		    </div>
		</div>
		<div class="weui-cells__title">家庭地址（必填）</div>
		<div class="weui-cells">
		    <div class="weui-cell">
		        <div class="weui-cell__bd">
		            <input class="weui-input" maxlength="50" value=""  name="address" type="text" placeholder="请输入家庭地址，方便蹭饭...">
		        </div>
		    </div>
		</div>
		
		<div class="weui-cells__title">纪念衫尺码（必填）</div>
		<div class="weui-cells">
		    <div class="weui-cell">
		        <div class="weui-cell__bd">
		            <input class="weui-input" value="" readonly id="size"  name="size" type="text" placeholder="请选择纪念衫尺码">
		        </div>
		    </div>
		</div>
		
		<div class="weui-cells__title">想对同学们说点什么</div>
		<div class="weui-cells">
		    <div class="weui-cell">
		        <div class="weui-cell__bd">
		        	<textarea class="weui-textarea" maxlength="150" name="content" placeholder="来对同学们说点什么" rows="3"></textarea>
		        </div>
		    </div>
		</div>
		
		<div>
	    	<a href="javascript:;" id="submitBtn" style="margin: 15px;" class="weui-btn weui-btn_primary"> 保存信息</a>
	    </div>
	</div>
</form>
#include("party_tabar.html")
#end
#define weiXinCss()
<style>
    body{
        background-color: #EFEFF4;
    }
    .container{
    	margin-bottom:50px;
    }
</style>
#end

#define weiXinJs()

<script>
    $(document).ready(function(){

    	$("#size").select({
        	  title: "选择尺码",
        	  items: ["S", "M", "L", "XL", "XXL", "XXXL"]
        	});
    	
    	
        $("#submitBtn").click(function(){
        	$.confirm("确认进行当前操作？", function() {
          	  //点击确认后的回调函数
        		var config ={
                        "url":"#(contextPath)/weixin/party/doSave",
                        "data":$("#submitForm").serialize(),
                        "successCallBack":function(resp){
                            if(resp.result){
                                $.alert(resp.data,function(){
                                    window.location.href="#(contextPath)/weixin/party"
                                });
                            }else{
                                $.alert(resp.data,function () {
                                    //window.location.reload();
                                });
                            }
                        }
                    };
        		var ajax = new AjaxUtils(config);
                ajax.executeRequest();
          	  }, function() {
          	  	//点击取消后的回调函数
          	  });
        	
        });
    })
</script>
#end